public class Test_break {

    public static void main(String[] args) {
        //记录次数
        int numCount=0;

        for(int i=0;i<=50;i++){
           if(i%7==0){
             System.out.println(i);
             numCount++;
             if(numCount==5){
                 //结束当层循环
                break;
             }
           }
        }
        //System.out.println(numCount);
    }
}
